<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group("", function () {
    # 文件上传
    Route::post('upload_file_simple', 'Index.index/uploadFileSimple');
    # 上传图片
    Route::post('upload_image', 'Index.index/upload');
    # 登录
    Route::post('login', 'login/login');
    # 后台菜单
    Route::get('get_menu', 'Admin.admin/getMenu');
    ## 首页数据统计
    Route::get('get_index', 'Index.index/index');


    # 系统
    ## 菜单
    Route::get('get_menu_list', 'Admin.menu/getMenuList');
    Route::post('del_menu', 'Admin.menu/delMenu');
    Route::post('add_menu', 'Admin.menu/addMenu');
    Route::post('edit_menu', 'Admin.menu/editMenu');
    Route::post('get_node_menu', 'Admin.menu/getNodeMenu');

    ## 系统参数
    Route::get('get_sys_setting', 'System.sys_setting/getSysSetting');
    Route::post('set_sys_setting', 'System.sys_setting/editSysSetting');

    ## 物流公司
    Route::get('get_logistics_list', 'System.logistics/getLogisticsList');
    Route::get('get_logistics_more', 'System.logistics/getLogisticsMore');
    Route::post('del_logistics', 'System.logistics/delLogistics');
    Route::post('add_logistics', 'System.logistics/addLogistics');
    Route::post('edit_logistics', 'System.logistics/editLogistics');

    # 管理员
    ## 管理员管理
    Route::get('get_admin_info', 'Admin.admin/getAdminInfo');
    Route::get('get_admin_list', 'Admin.admin/getAdminList');
    Route::post('del_admin', 'Admin.admin/delAdmin');
    Route::post('add_admin', 'Admin.admin/addAdmin');
    Route::post('edit_admin', 'Admin.admin/editAdmin');
    Route::post('edit_admin_info', 'Admin.admin/editAdminInfo');
    ## 角色设置
    Route::get('get_admin_role_list', 'Admin.role/getAdminRoleList');
    Route::post('del_admin_role', 'Admin.role/delAdminRole');
    Route::post('add_admin_role', 'Admin.role/addAdminRole');
    Route::post('edit_admin_role', 'Admin.role/editAdminRole');
    Route::get('get_role_tree', 'Admin.role/getAdminRoleTree');
    Route::get('get_role_all', 'Admin.role/getAdminRoleAll');


    # 广告
    ## banner设置
    ### banner
    Route::get('get_banner_list', 'Admin.banner/getBannerList');
    Route::post('del_banner', 'Admin.banner/delBanner');
    Route::post('add_banner', 'Admin.banner/addBanner');
    Route::post('edit_banner', 'Admin.banner/editBanner');
    ### banner分类
    Route::get('get_banner_type_list', 'Admin.banner_type/getBannerTypeList');
    Route::post('del_banner_type', 'Admin.banner_type/delBannerType');
    Route::post('add_banner_type', 'Admin.banner_type/addBannerType');
    Route::post('edit_banner_type', 'Admin.banner_type/editBannerType');
    Route::get('get_banner_type_more', 'Admin.banner_type/getBannerTypeMore');
    ### 消息通知
    Route::get('get_message_list', 'Admin.message/getMessageList');
    Route::post('del_message', 'Admin.message/delMessage');
    Route::post('add_message', 'Admin.message/addMessage');
    Route::post('edit_message', 'Admin.message/editMessage');


    # 用户管理
    ## 会员管理
    Route::get('get_user_list', 'User.user/getUserList');
    Route::post('edit_user', 'User.user/edit_user');
    Route::post('del_user', 'User.user/delUser');
    Route::post('edit_user_add', 'User.user/edit_user_add');


    #相关用户
    //Route::get('get_user_all', 'User.user/all');

    ## 会员等级
    Route::get('get_user_level_list', 'User.user_level/getUserLevelList');
    Route::post('del_user_level', 'User.user_level/delUserLevel');
    Route::post('add_user_level', 'User.user_level/addUserLevel');
    Route::post('edit_user_level', 'User.user_level/editUserLevel');

    ## 学校管理
    Route::get('get_school_list', 'School.school/getSchoolList');
    Route::get('get_school_more', 'School.school/getSchoolMore');
    Route::post('add_school', 'School.school/addSchool');
    Route::post('edit_school', 'School.school/editSchool');
    ## 学校区域
    Route::get('get_school_area_list', 'School.school_area/getSchoolAreaList');
    Route::post('add_school_area', 'School.school_area/addSchoolArea');
    Route::post('edit_school_area', 'School.school_area/editSchoolArea');
    Route::get('get_school_area_more', 'School.school_area/getSchoolAreaMore');


    ## 商户管理
    Route::get('get_merchant_list', 'Merchant.merchant/getMerchantList');
    Route::get('get_merchant_more', 'Merchant.merchant/getMerchantMore');
    Route::post('add_merchant', 'Merchant.merchant/addMerchant');
    Route::post('edit_merchant', 'Merchant.merchant/editMerchant');


    # 商品
    ## 分类
    Route::get('get_goods_cate_list', 'Goods.goods_cate/getGoodsCateList');
    Route::post('del_goods_cate', 'Goods.goods_cate/delGoodsCate');
    Route::post('add_goods_cate', 'Goods.goods_cate/addGoodsCate');
    Route::post('edit_goods_cate', 'Goods.goods_cate/editGoodsCate');
    Route::post('get_goods_node_cate', 'Goods.goods_cate/getNodeCate');
    Route::get('get_goods_cate_all', 'Goods.goods_cate/getCateAll');
    Route::get('get_goods_type_all', 'Goods.goods_cate/getGoodsTypeAll');

    ## 商品信息
    Route::get('get_goods_list', 'Goods.goods/getGoodsList');
    Route::post('del_goods', 'Goods.goods/delGoods');
    Route::post('add_goods', 'Goods.goods/addGoods');
    Route::post('edit_goods', 'Goods.goods/editGoods');
    Route::post('edit_goods_type', 'Goods.goods/editGoodsType');

    # 课程管理
    ## 课程分类
    Route::get('get_course_cate_list', 'Course.course_cate/getCourseCateList');
    Route::post('del_course_cate', 'Course.course_cate/delCourseCate');
    Route::post('add_course_cate', 'Course.course_cate/addCourseCate');
    Route::post('edit_course_cate', 'Course.course_cate/editCourseCate');
    Route::get('get_course_cate_all', 'Course.course_cate/getCourseCateAll');
    ## 课程信息
    Route::get('get_course_list', 'Course.course/getCourseList');
    Route::post('del_course', 'Course.course/delCourse');
    Route::post('add_course', 'Course.course/addCourse');
    Route::post('edit_course', 'Course.course/editCourse');
    Route::post('edit_course_type', 'Course.course/editCourseType');

    # 视频管理
    # 视频分类
    Route::get('get_video_cate_list', 'Video.video_cate/getVideoCateList');
    Route::post('del_video_cate', 'Video.video_cate/delVideoCate');
    Route::post('add_video_cate', 'Video.video_cate/addVideoCate');
    Route::post('edit_video_cate', 'Video.video_cate/editVideoCate');
    Route::get('get_video_cate_all', 'Video.video_cate/getVideoCateAll');
    # 视频信息
    Route::get('get_video_list', 'Video.video/getVideoList');
    Route::post('del_video', 'Video.video/delVideo');
    Route::post('add_video', 'Video.video/addVideo');
    Route::post('edit_video', 'Video.video/editVideo');
    Route::post('edit_video_type', 'Video.video/editVideoType');
    # 短视频信息
    Route::get('get_short_video_list', 'Video.short/getVideoList');
    Route::post('del_short_video', 'Video.short/delVideo');
    Route::post('edit_short_video', 'Video.short/editVideo');
    Route::post('del_short_comments', 'Video.short/delComments');
    ## 获取商品
    Route::get('get_goods_all', 'Video.video/getGoodsAll');
    ## 获取课程
    Route::get('get_course_all', 'Video.video/getCourseAll');

    ## 获取课程
    Route::get('get_user_all', 'Video.video/getUserAll');



    # 订单管理
    ## 商品订单
    Route::get('get_order_goods_list', 'Order.Goods.goods_order/getOrderGoodsList');
    ## 拼团
    Route::get('get_collage_goods_order_list', 'Order.Collage.collage/getCollageGoodsOrderList');
    ## 拼团订单列表
    Route::get('get_order_group_goods_list', 'Order.Collage.collage/getOrderGroupGoodsList');

    ## 会员订单
    ## 免费领取订单
    Route::get('get_free_order_list', 'Free.free_order/getFreeOrderList');
    ## 发货
    Route::post('deliver_order', 'Order.Goods.goods_order/deliverOrder');
    Route::post('deliver_free_order', 'Free.free_order/deliverFreeOrder');

    # 提现管理
    Route::get('get_user_withdraw_list', 'User.user_withdraw/getUserWithdrawList');
    Route::get('get_user_withdraw_wxpay', 'User.user_withdraw/getUserWithdrawWxPay');


    # 用户反馈
    ## 反馈分类
    Route::get('get_feedback_type_list', 'Feedback.user_feedback_type/getFeedbackTypeList');
    Route::post('del_feedback_type', 'Feedback.user_feedback_type/delFeedbackType');
    Route::post('add_feedback_type', 'Feedback.user_feedback_type/addFeedbackType');
    Route::post('edit_feedback_type', 'Feedback.user_feedback_type/editFeedbackType');
    ## 反馈列表
    Route::get('get_feedback_list', 'Feedback.user_feedback/getFeedbackList');
    Route::post('edit_feedback_type', 'Feedback.user_feedback/editFeedbackType');

    # 合伙人申请
    Route::get('get_user_apply_partner_list', 'User.user_apply_partner/getUserApplyPartnerList');
    Route::post('dispose_user_apply_partner', 'User.user_apply_partner/disposeUserApplyPartner');
    ## 合伙人信息
    Route::get('get_partner_info', 'User.user_apply_partner/getPartnerInfo');
    ## 合伙人信息编辑
    Route::post('edit_partner', 'User.user_apply_partner/editPartner');


    # 激活码
    Route::get('get_user_vip_code_list', 'User.user_vip_code/getUserVipCodeList');
    Route::post('add_user_vip_code', 'User.user_vip_code/addUserVipCode');
    Route::post('edit_user_vip_code_type', 'User.user_vip_code/editUserVipCodeType');

    # 积分商城
    ## 分类
    Route::get('get_shop_goods_cate_list', 'Shop.shop_goods_cate/getShopGoodsCateList');
    Route::post('del_shop_goods_cate', 'Shop.shop_goods_cate/delShopGoodsCate');
    Route::post('add_shop_goods_cate', 'Shop.shop_goods_cate/addShopGoodsCate');
    Route::post('edit_shop_goods_cate', 'Shop.shop_goods_cate/editShopGoodsCate');
    Route::post('get_shop_goods_node_cate', 'Shop.shop_goods_cate/getShopNodeCate');
    Route::get('get_shop_goods_cate_all', 'Shop.shop_goods_cate/getShopCateAll');
    Route::get('get_shop_goods_type_all', 'Shop.shop_goods_cate/getShopGoodsTypeAll');

    ## 商品信息
    Route::get('get_shop_goods_list', 'Shop.shop_goods/getShopGoodsList');
    Route::post('del_shop_goods', 'Shop.shop_goods/delShopGoods');
    Route::post('add_shop_goods', 'Shop.shop_goods/addShopGoods');
    Route::post('edit_shop_goods', 'Shop.shop_goods/editShopGoods');
    Route::post('edit_shop_goods_type', 'Shop.shop_goods/editShopGoodsType');

    ## 优惠券
    Route::get('get_coupon_list', 'Coupon.coupon/getCouponList');
    //Route::post('del_coupon', 'Coupon.coupon/delCoupon');
    Route::post('add_coupon', 'Coupon.coupon/addCoupon');
    Route::post('edit_coupon', 'Coupon.coupon/editCoupon');
    Route::get('get_goods_course_all', 'Coupon.coupon/getGoodsCourseAll');

    # 系统支付
    Route::get('get_pay_list', 'System.sys_pay/getPayList');
    Route::post('edit_pay_info', 'System.sys_pay/editPayInfo');
    Route::post('edit_pay_type', 'System.sys_pay/editPayType');




});

